﻿/**
 * ...
 * @author sminutoli
*/

import com.dmotiko.general.*
import com.dmotiko.prune.*

class CampaignBtn 
extends ButtonClip
{
	private var mcLabel:MovieClip;
	private var mcTrigger:MovieClip;
		
	private function refreshData():Void {
		mcLabel._xscale = mcLabel._yscale = 48;
		mcLabel.attachMovie( data.src, data.src, mcLabel.getNextHighestDepth() );
		mcTrigger._width = mcLabel._width;
		mcTrigger._height = mcLabel._height;
	}
	
	public function onRollOver():Void {
		if ( this.bActive ) return;
		this.gotoAndPlay( OVER );
	}
	
	public function onRelease():Void {
		this.dispatchEvent( { type: BaseClipEvent.CHANGED, target: this, data: this.data, description: "setActive" } );
	}
	
}